package com.example.holes;

import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.Paint;
import android.graphics.Paint.Align;

public class Score {
	private int score = 0;
	private String scoreText = "0";
	Paint paint = new Paint();
	private final int left = (int)(780 * Global.SCALE_RATIO_W);
	private final int top = (int)(76 * Global.SCALE_RATIO_H);
	
	public Score(){
		paint.setColor(Color.WHITE);
		paint.setTextSize(25);
		paint.setTextAlign(Align.RIGHT);
	}
	
	public void Draw(Canvas c){
		c.drawText(scoreText, left, top, paint);
	}
	
	public void plus(int points){
		score += points;
		scoreText = Integer.toString(score);
	}
	
	public int getScore(){ return score; }
}
